package com.example.file.jmeter;

import com.example.file.util.FileUtil;
import org.junit.Test;


/**
 * @author ZhenWuWang
 */
public class DatWriter
{
    @Test
    public void writeTaskDat()
    {
        for (int i = 0; i < 100; i++)
        {
            String s = String.format("Thinking In Java %s,Thinking In Java---%s,0,2019-05-20 17:35:00,2019-05-20 17:40:00", i, i);
            FileUtil.writeFile("F:/apache-jmeter-4.0/script/task_name.dat", s + "\n");
        }
    }
}
